package com.springstudy.controller;


import com.springstudy.service.QuickService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author Tamako
 * @since 2025/1/13 16:07
 */
@Controller
public class QuickController {
    @Autowired
    private QuickService quickService;

    @RequestMapping(value = {"/show", "/showXxx", "/showYyy"}, method = {RequestMethod.GET, RequestMethod.POST})
//    @GetMapping
//    @PutMapping
    public String show() {
        return "redirect:/index.jsp";
    }

    @RequestMapping("/show2")
    public String show2() {
        System.out.println("show2 running..." + quickService);
        return "/index.jsp";
    }
}
